import React from 'react';
import {
    View,
    Text,
    StyleSheet,
    Image,
} from 'react-native';
import { connect } from 'react-redux';
import HeaderView from '../../components/HeaderView'
import {tabBarIconStyle} from '../../utils/KJStylesE';


class PatientScreen extends React.Component {

    constructor(props) {
        super(props);
    }

    static navigationOptions = {
        tabBarLabel: '患者',
        tabBarIcon:({tintColor})=>(
            <Image
                source={require('../../src/me1.png')}
                style={{width: tabBarIconStyle.width-8,height: tabBarIconStyle.height-8,tintColor: tintColor}}
            />
        ),
        header:<HeaderView tilte='患者'/>,
    };

    render() {

        return (
            <View style={styles.container}>
                <Text>患者___{this.props.uuid}</Text>
            </View>

        );
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: '#F5FCFF',
        justifyContent:'center',
        alignItems:"center",
    },
});


function select(store){
    return {
        uuid:store.userInfo.user_id,
    }
}

export default connect(select)(PatientScreen);